﻿using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data;
using Shuba.Model;

namespace Shuba.Business
{
    public class UserDevice
    {
        private Shuba.Data.UserDevice _data = new Shuba.Data.UserDevice();

        public List<UserDeviceInfo> GetList(string keyword)
        {
            return _data.GetList(keyword);
        }       

        public UserDeviceInfo Get(string NIP)
        {
            return _data.Get(NIP);
        }

        public UserDeviceInfo GetByIMEI(string IMEI)
        {
            return _data.GetByIMEI(IMEI);
        }

        public int Save(UserDeviceInfo info)
        {
            return _data.Save(info);
        }

        public List<UserDeviceInfo> GetListApproval(string UPDATE_BY)
        {
            return _data.GetListApproval(UPDATE_BY);
        }

        public void Approve(string NIP, string ACT_TYPE)
        {
            _data.Approve(NIP, ACT_TYPE);
        }

        public void Reject(string nip)
        {
            _data.Reject(nip);
        }

        public UserDeviceInfo GetApprovalByID(string nip)
        {
            return _data.GetApprovalByID(nip);
        }
    }
}